package Lock;

/**
 * @author create on 2021/7/12
 */
public class FakeLimitResource {

    private Integer ticket = 250;

    public void use () throws InterruptedException{
        try{
            System.out.println("车票还剩余" +  (--ticket) + "张！");
        }catch (Exception e ){
            e.printStackTrace();
        }
    }
}
